<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js示例4-7-3</title>
	<script>
		var jieCheng = function jieCheng1(n){		//定义函数jieCheng
			var jieCheng = 1;
			for(var i = 1;i <= n; i++){
				jieCheng = jieCheng * i;
			}
			return jieCheng;
		}
		alert(jieCheng(6));		//调用函数jieCheng
	</script>
</head>
<body>
	
</body>
</html>